type service = {
  MOCK: string;
  MANGMENT: string;
  HR: string;
  REPORT: string;
  REVIEW: string;
};
// dev环境
const dev_host = "https://sys-api.iguokao.com";
const dev_service: service = {
  MOCK: ``,
  MANGMENT: `${dev_host}/management/api`,
  HR: `${dev_host}/hr/api`,
  REPORT: `${dev_host}/report/api`,
  REVIEW: `${dev_host}/review/api`
};
// 测试环境
const sta_host = "https://api.igky.cc";
const sta_serice: service = {
  MOCK: ``,
  MANGMENT: `${sta_host}/management/api`,
  HR: `${sta_host}/hr/api`,
  REPORT: `${sta_host}/report/api`,
  REVIEW: `${sta_host}/review/api`
};
// 生产环境
const prod_host = "https://sys-api.iguokao.com";
const prod_server: service = {
  MOCK: ``,
  MANGMENT: `${prod_host}/management/api`,
  HR: `${prod_host}/hr/api`,
  REPORT: `${prod_host}/report/api`,
  REVIEW: `${prod_host}/review/api`
};

let config: service;
switch (import.meta.env.MODE) {
  case "development":
    config = dev_service;
    break;
  case "staging":
    config = sta_serice;
    break;
  case "production":
    config = prod_server;
    break;
  default:
    break;
}
export { config };
